Fix bug 1047002: Do not generate token in subscribe view.

Includes rewritten tests for the view and utility function.