Added unit test for the test() method

This is to make sure that method isn't broken
Merge pull request #6168 from owncloud/extstorage-testtestmethod

Added unit test for the test() method of ext storage