Environment based unit test case issue fixed