Added tests for reader exceptions.