reformat and change assertion more readable.
category tree without coalescence
optimize code coverage