optimizer tests