cleaned up environment init in tester