Sessions helper tests