adding test case for getDefaultEmailAddress() + fixing #1844 again

fixing #1844 again

@Raydiation @LukasReschke @tanghus THX