Updated exception testing to work with Ruby 2.0.0