added tests for metadatafanout