So the way I see it this:
JNZ, JZ sets ZF to 0
TEST and CMP set ZF to 1 IF the values are equal and 0 otherwise.
And the rest I have no idea what you said... :P

I need things to be a little more clearly explained, sorry...