test against custom foreign keys