Utilities for comparison-based testing.