use onstartup load factory mode to improve selenium tests perf