added rspec tests; added travis settings