Core: Add new testing method `waitForErrorWithin:`