Extend testNewFromGlobals test

Change-Id: I54e6857c80f6f136ea1b84fd54709a972436c8ed
Merge "Extend testNewFromGlobals test"