Cleanup test state for feature detection.