added rspec tests ~50% coverage