Change group parameter to groups

So we can pass in an array of groups rather than a single group.
Plus tests.
Release version 1.0.0

This is a breaking change so have to make it a major version change.