cleaned up test_servers() with the previously added utility functions.