Test for warning if prefix search too long

Bug: 54048
Change-Id: I1ae5b771914aaf489cdd78b7737c4d441a2bc4dc
Merge "Test for warning if prefix search too long"