added rspec test.