reworked middleware ini dist file
fixup of obvious errors in the tests