Added rspec tests
Added rspec tests