Working Singleton with tests. Working on ThreadPool. Some minor changes.