Fixed errors in test.