Issue #303: fix the expectedFailures code