added test cases -compostion, array of objects