Added more tests, fixed a bug in BigInteger.mod.