Better env handling for testcontrolpanel due to exposing needed variables