Minor code improvement in DB test.