To test hooks