Rectified errors in tests