Added db unittest