completed unittests related to https://github.com/globaleaks/GlobaLeaks/issues/819