fixed bug that caused test emails not to work properly if none was given to the script as an option