[greg and james] make functional tests depend on environmental variable env