Added rspec tests and removed manual client test