test redirect on the server