Added test case for create new collection; fixed collection metadata creation bug