Test coverage in test_client.rb and test_server.rb

Also cleaned up the original tests a tad in test_ruby.rb