Functional tests for PARI