fixed session test issues