Tests and correct type for for relative discount as number.