add singleton design pattern test demo