Cleanup tests

* Use mock
* Remove useless logging
* Misc pylint stuff
Merge pull request #14 from scality/unittest

Cleanup tests and make them pass