fix for alias and references hooks/tests