Fix test with `add_foreign_key` DSL

This bug was introduced in 9d21ef9