Clean up after tests to make them more robust.