using rspec for testing