you can remove this check and the storage in a property: you are getting the provider only once per test anyway