Added tests for session controller + implementation