Testing using sessions instead of requests