tests: unify fortification handler logic