test: finished refactor of the framework

TODO: The current temp branch need to be cleaned and rebase to
the main branch!!!

Changed the hook framework great and modify the
remainning code to use the new framework.

Add 2 small scripts to generate the trace result and parse the json format.