Added Db unit tests