added rspec and initial tests