implement rspec testing