test reference linking for mongoengine