Added implementation for merge and expanded test cases to verify some extra stuff