Add test for class references.