Fix new-style class issues and tests

* changed classes to they subclass object and are now new-style classes
* fixed tests to be more succinct using raises_ which checks for the
  correct exception
* fixed tests which were incorrectly checking the exception msg

r?