make ps testable