torture_pkd: split out test functions