added spec for sessions helper