OptsProcessor tests and implementation