add test for merged