implemented and tested merging of composite symbols