Fixed some tests stuff

* Fixed tests for httpdownloader (using tmp dir)
* Implemented a couple of tests for Stats plugin