[corlib] Implement task awaiters running on custom task scheduler. Fixes #16587
Improve test failure check