small fix of mergeN and mergeN spec