Added integration test for cref references.