Write model associtation test