replaced multiple test environment calls with variable for test environment