Added basic tests for the PPD.  Fixed bug with degrees of success.

As it says on the tin.