add log function
fix test case