Sticky session implementation and tests