add a mechanism of listing known routes and catching duplicate declarations in test mode