[Mac] Minor fix in unit tests
Fix some unit tests

When a box has a size of 0, make sure all children also are reallocated
with a size of 0.
Mac: fix NRE when updating visibility.