key_test.py: Add check for empty key list reading