Renew flash messages.
Added test coverage.