Possible fix for a test failing because it was running async