Fixed the one-to-many relationship
Added tests for the one-to-many relationship