added rspec test and client classes