Fix for unit test under some JDK versions
Remove stray yield call