quieter tests
fix infinite loop in the case that publishing is not enabled