Updated test-API to accept domain and port from command-line as well