Added test for making grouped AVP. Fixes #1