adding test case for getDefaultEmailAddress() + fixing #1844 again
Merge pull request #2088 from owncloud/fixing-1844-again-master

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