completed tests for flash message and email sending