Adds tests to ensure argument order of email function call is correct.