changed testdict to testkey to avoid confusion