fix compareOperator bug in worksharing builder
fix minor problem with unit test