Ensure lookup returns same object when using different formats

Regression test. Currently this is only tested with `instanceOf`. This test ensures that the container returns the same object and just one of the same type.