added test to check result from path method