Some code testing out thread safe singletons