Fix mock request in path helper