Make SidebarHookHandlersTest::testNewFromGlobalState more robust

Right now that test fails for me, if run individually.

Change-Id: Ic6bf76b716f533b867f9ed49748274301f9f28e2
Merge "Make SidebarHookHandlersTest::testNewFromGlobalState more robust"