Session tests and minor fix

No coverage for windows.
No session side-effects.

cookie_lifetime and entropy_file is atm missing cases in Session::setOption.