Move testcase to own test function

Move testcase for getDefaultEmailAddress with mail_domain set in config.php to own test function.