Added test for case that key exists