improved test
- fixed testPermanentDeleteFile sometimes failed
- speed optimization
- reformat code
added users for tests
reformat code to meet coding guidelines
Merge branch 'master' into file_encryption_tests
Merge pull request #3496 from owncloud/file_encryption_tests

improved tests for files_encryption