Added a check for a flashed message in auth test.