Integration tests for group sudo

- adds integration tests (scenario for the new group sudo functionality)
- unify the usage of `owner=owner`in the `library.py`