test getByMaxPath