Add a failing test for the foreignkey assignment issue