Testing handling session ids