refactor flash messages
standardize parentheses in expectation statements