test for invalid key of map results in nil