Fix PhraseQuery test, add a test for Term sub-elements