apply infix and fix failing test