[unittest] Refactor the unit test library for better display

    - Improve the result display
    - Add callback for printing out the results

Change-Id: I9e0172183f608ba9ae9311f088d4c067fc9e9fed