Renew setting & add routes & some tests