tests/unit: update with new expectCompare API