An attempt to make unit testing of singleton classes easier.