Add more unit tests in preparation for switching bigint implementations.