Move test.done to finally block.