added a test for error raising