Added unit test for feature merging.