couple of tests for pre and post hooks