Modified test to use $ref as well.