Fix issue with init mock env

Change-Id: I50fe3cdc079cfe89f5660a56c824055e1b136660