Test driver now properly closes down the window