Improve liblouis-core tests and logging