Implemented error checking tests.