codegraph: unit test for the link between def and use of xhp attribute

Summary: Testing the new feature jiao recently added to codegraph.

Test Plan: make test

Reviewers: jiaol, pieter, mathieubaudet

Reviewed By: jiaol

Differential Revision: https://phabricator.fb.com/D849435