Fix some minor bugs and warnings in the new PI tests.