session test fixes