Comparing full map instead of individual fields in leave test