close app
modularizing test with env