Add a test that --group correctly propagates groups of which the local