Adding a test to check the actual error condition