Add libpgm tests.