modified test-gmp script