unit tests for the session affinity check.