Add getAllKeys and tests