Add test for email controller plugin