Test for MODE-2377

QueryManager should use implicit PATH indexes when joining subnodes