Fix for Issue #58 - thrown error is reported, and can be compared to an expected value