edited pd_test