tests: trap exceptions in before_tag