Added a timer to close test window passed 20s