test $ref