Refactor data merger and add tests for data merger
Point to unit test for examples