Fix bugs in dpd; allow beta0 > 0 in unit tests