test case to fail without ensure_foreign_key_for