Added test for Parser#getKey