correct error in session test