Fix invmode

little inversion, with fixed test.
This is safely and important to merge as buildout is running in newest mode by default here.