test model relationships