Fixed deprecated rspec checks in client unit spec