The husband and wife may testify either for or against each other in criminal cases, but shall not be compelled so to do.