merge_table_records_with_pk method integration with unit tests

Same here for the table folder/name