fix sharing unit tests
Merge pull request #7292 from owncloud/sharing_tests

fix sharing unit tests