Add test for crud methods when setting rest routes