Added rspec tests