Added test for condition where key is absent