Test logging off switch in `UserAgent`.

Closes #32.