Deleted the unused Reference class and changed a test.