fix app environment for unit test