Added test function getKeyAndStore