Fix test that shouldn't be async