added browser test helper to set a login cookie without full login sequence