check error in tests.