Fix session test check.