Which is the way to have on a custom page "Test" (outside of resources) with the url ...'admin/test' and this page remains active while acces 'admin/test/something' ? public static function getPages() seems to be used on a resource
Solution
Maybe try the new Cluster functionality released in v3.2, with discoverPages?