Add tests for initial and update email tasks. MJ-596