Added unit test for throwing exceptions from a reader