more tests for unary minus and a related fix in error handling