Move test teardown into `ensure` block.