I think this is the problem. This will have it visit your dev server instead of the testing server, so it won't be logged in on your dev server.

I'm pretty sure you want to keep that a path. But if you want to make it a url, you should use the _url helper, instead of tagging it on manually like that.