Corrected errors in tests.