add some new test about java design pattern