fix unittest: set new block to be clean
fix indentation
fix python unittest