Load session hook in tests