Extend spec to test reference support.