Singleton pattern with a test added