Reduce memory usage and complexity of merge_data_file test

A step towards issue #141