fix environment for test