Session manager unit testing