Tests hooks