Fix comparison direction causing tests to finish prematurely.

Signed-off-by: markhpc <mark.a.nelson@gmail.com>