Fixed logic for skipping test e-mails (when is_test==1).