sometimes when running the tests we will fail because we haven't set the session state yet, this fixes that