model relation tests