fix the test so that it isnt possible for the publish to have not returned yet