Add path lookup api
Add unit test for path lookup api