test relation between models