add test case for compose