copied from TestPhrasePrefixQuery, added a test for toString() and added a test where the first term is expanded