improve unit testing

* add logging unit tests
* test runners exit 1 on failure
* integrate with build
add required python libs