Working pd tests

Tests for pD, pd, and pdn