session func tests