Test ng-ref attribute