Add tests for new internal GMP primitives

This adds some simple tests for the primitives introduced
in [4d7cd68b/integer-gmp] and [d466dfc8/integer-gmp].

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>