test reference linking for sqla