Add tests for backrefs