Adding unittests for create collection