Extend test case for getDefaultEmailAddress() + fix #2499