19 tests

Basically, this PR is a kick start for adding rspec tests to the whole engine. Not all the resources are covered in tests.

Tested on the following versions:

* Ruby 2.1.1p76 and 1.9.2-p320
* Rails 3.2.12, 3.2.13 and  3.2.17.