adds some rspec tests