Fix group hooks mock Closes #4519 See merge request gitlab-org/gitlab-ee!3982 (cherry picked from commit 1b16ffac) 5800fe16 Fix group hooks mock