Functional tests for gateway login and logout.
More tests.