Fixed tests
Filled out errors
Error type.