Unify test utils to take the path parameter first