updating tests for new logic in emails