test DesignPatterns