add mergeWith convenience function and change a line in the spec to test it