updated pdtest with hook setter functions