Add some rspec tests

Also run tests in Travis CI