adde tests for hooks