Write test for custome routes