Added unit test of pgpData().

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>