(PUP-1151) Fix environment enumeration endpoint test

Use the beaker-provided `master` variable to construct the endpoint, rather than grab it from the agent's configuration.