change the order of generating reports and graphs, fix bugs in regression test