mergeFunctions.merge() tests

- console spies turned into console stubs to make the test output code cleaner
- Removed uneccessary callbacks for mergeFunctions