tests: Move environment creation and teardown into each test.