The meaning of test
is to AND the arguments together, and check the result for zero. So this code tests if EAX is zero or not. je
will jump if zero.
BTW, this generates a smaller instruction than cmp eax, 0
which is the reason that compilers will generally do it this way.