add some new test about the java pattern composite