Make HeadlessCompletenessTest more robust

As pointed out by Jonette Jenkins, the test failed when Javassist-based
patching was applied in another test beforehand.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>