[Math] Reorganized the BigInteger and BigDecimal test classes