Updated the testpmi2.c to include more API calls.