added cpu mode selection to before filter on tests