Added helpers to test flash messages