added rspec and model tests