fix typo
fix annoying compile warning
add direct checks of comparison ops to regression test