test the post hook