test/pub handle expected failure