Support KEY field qualifier
Fix the case where only one component exists
Refactor tests
Refactor tests: separates a large example into small pieces