added rspec and tests for existing functionality