Unit tests for SessionController.