fix exception tests to cope with pipeline reorder