Check identity, rather than equality, in StorageLocatorTest

Should avoid test errors.