Adding values of merged items into history, ordering history by lastDateUpdated value and testing it.