Fixing error reporting for Ticket #206
adding test for Ticket #206