Add put_session_cookie in test case to setup connections
Calculate initial value for reloader to avoid unecessary first reload