Add test for custom generic picklers