Features/treebuilder test

* fixed some tests
   * missing TreeBuilder test
   * non working config.set_multivar()
   * added missing unittest.main() for tests_remote.py
* Repository_read().data should be binary data (ifdef/else is a bit ugly but I found no other way)