destroySingleton method added for testing purposes.