added combine_latest and unit test for merge