fixed internal_math tests