You can assert that the "Its progress will be tracked below." string gets appended to msg when not background is True.