Update 2 test cases for printing log content, rather than console
output.