tests for email queue repository