Added test showing use of logging, #1072