fixes for tests

- added few lines for tests to run with ruby 2
- updated tests to work with new modeltypes table
removed warning message

ActionController::Base.relative_url_root= is ineffective. Please stop
using it.
Merge pull request #131 from PecanProject/fix-tests

fixes for tests