fix assign to window.testsPassed