More generic test if have ref, if not, use default