Test ObjectID casting from string in foreign key