Add tests for new pgb helpers.