Use constant in db_test