ticket:1 Fixed errors in tests.