Added tests for loging.