updated the unittest to support mongodb connection and removeable collections