Add more PS integration tests
Fix leaks, bad indications, and fencepost errors from PS tests