add global data option and tests