Moving sample Singleton implementation out of tests