Fix how results are returned.
Check results in tests
Several logger improvements

[ci skip]