infrastructure for PS tests