Added functional tests for /groups api endpoints. See #2.