add test for checking log message