fix default environment value
wip environment tests