Add tests for new import/export GMP primitives

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