add environment switch to test form