add sync support for enum singleton and add one more test case