made the tests restore the alloy exe mode after completion