Modify endpoint of url for tests