add compose entity and test