small fix for metadata community
add metadata community unit test