use assertSame and assertNotSame for etag checks
use assertInternalType for typechecking
initialize etags of temporary storage
Merge pull request #7446 from owncloud/etag_assert_fixes

use assertSame and assertNotSame for etag checks