Add check for user hooks
Add basic tests