Added foreign keys to model, updated test to check for them

refs #16437