Adjusted unit test to reject proper error condition