Add example for hooking a function.
clean up test_loadet and fix a small issue with malloc_loader