Tests NULL values on ForeignKeys.

After this commit, the modified test should fail.