fix init unit test problem - add log & format