update tests to goenv struct