Added tests around logging

This should resolve #206