Renaming ref and fixing broken test