SingletonMetaclass and tests