tests: use logging infrastructure to display messages

instead of using printf
2 files changed