Trial fix for bug 947531, focus the test window before starting the test