fix a bug in testenv