test: allow skipping errors in certain conditions