Check logs response in unit tests, and fix log integration tests for py3