added rspec for tests