SessionManager

Created unit test for session manager.
Updated sessionmanager and relevant classes to have behaving sessions.
small javadoc fix in matcherEndpoint
Refactored resiliencetest(s)