Fixed activity restart when TestMake returns from background to
foreground