Mock open to prevent file creation

Some unit tests does create files in root of project

Change-Id: I9b9907177ad1d25142d85538a727a5e8eab99df0
Merge "Mock open to prevent file creation"