Improved tests' <=> comparator to handle structural equality.