Add option preProcess
Fix test