Ensure add inv takes the selected group to pass through

Fixes #12

Will keep the group as null if nothing is selected. May want to add a test
to ensure "add" is never selected.