update test to check for path instead of url