Tried to implement error tests.