move test setting to env.py