try {
        await router.load({ component: 'bar', params: { x: '1' } });
        assert.fail('expected error1');
      } catch (er) {
        assert.match((er as Error).message, /AUR3401.+bar/);