Rewrite some APIs unittests in order to deal with strange TravisCI timeouts
Rewrite some APIs unittests in order to deal with strange TravisCI timeouts

vodkina/GlobaLeaks,vodkina/GlobaLeaks,vodkina/GlobaLeaks,vodkina/GlobaLeaks