Fixed tests for error reporting