add test for joinmodel.bridge
add test for foreignkey