added rspec and basic tests