Properly close tested widgets