Add test for flash message composer