You should do both assertions:

```
queried_thing1 = storage.get(Thing, id=thing1.id)
queried_thing2 = storage.get(OtherThing, id=thing2.id)

assert type(queried_thing1) == Thing
assert type(queried_thing2) == OtherThing
assert queried_thing1.id == queried_thing2.id == thing2.id
```