made emailAlert tests run only if the script is executed by itself