Create test.js

implement test cases for merge function. All test cases passed