fixing some issues in the html reporter and grouping results into tests