test unidirection relationship together with to-many relationship