Ignore undef in mergePatch
Rearrange tests