a more direct _generateKeysFromDoc unit test