Adding a flash message on success
Refactoring a test for redirection