Get CTest working and add pnEncryption tests.

This will allow you to run all the tests with `make test` or `ctest`.