(PUP-3468) create test; production environment created when missing

Although a lot of tests are relying on the on() method halting the test one way or the other; maybe Beaker can assert the acceptable_codes?