add test for trying to retrieve an object with a nil key