BUG: Return of logpmf
Added regression test