added rspec testing with changes