Added merging articles functionality and tests