added rspec testing