Add register and logout tests.