Added test for error messages
Ignore extra files for tests
Minor improvements to error format