add `flash` to req mock