add a test for the IMF calculations
shrink the scratchBuffer to 32 bytes as that's all we use