fixed database error test