Fix bugs in printing
Allow covariance test to reach the last step, and add more tests