code clean up many2many relationship testing