Repair broken tests

* Remove support for ActiveResource 3.1.
* Include test improvement by @tomaszp-infopark (see #15)
* Use stricter naming schema for CustomType names.