Adding unit tests
Merge pull request #1941 from owncloud/add-file-locking-units

Adding unit tests