backends/test: Make loglevel configurable.

Closes #208.