Fixed all errors in tests.