Fix errors on "is line exists in db" tests