added test for flash messages
shortened a test case