make cgiar configurable, fix tests, comment logging and writing image