set up rspec testing with code