Angular core testing async deprecated example. inject is only supported in an injection context.