Added a script to test hooks