added tests for the session controller