debug: implement logdnorm and logpnorm in test