Make sure globals are not overwritten in MobileContextTest

Includes whitespace changes for readability

Change-Id: I12299805b094c7dfa44203bd6af3b04ab13ec553
Merge "Make sure globals are not overwritten in MobileContextTest"