test helper cleanup