fixed assertions for usergroup tests

- added `search` fn
- renamed `remove` function to `delete` and update it
- updated assertions for all usergroup tests