Use endswith selector for label search test.