testing custom routes under nested resources for two models with many-to-many relations