Apply Singleton. Unit Tests.