Update mocha tests

Boolean and arithmetic infix operator tests have shared logic
abstracted/factored out.