cleaned up test_servers() and test_serversJsonp() by adding a commonly used helper function.