style(router.ats): add type annotation for generate method
test(router.ats): reorganize instantiation test