Fix unit test for null FKs in JSON.