add test of composite