fix pry warning in rspec; write more tests