updated merger with test