improved find routes algorithm; fixed session object properties; check more session parameters in tests