added test for the flash message