[TASK] Adjust unit test to avoid spl_object_hash warning