Remove debug output from unit test
Add lookup for reference identifier