Writing tests for HandComparator.