fix minor bug when fetching test report
add func to flush test report
Merge branch 'develop'