add test for saving has many relationship