Add tests for -P option.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>