move optimizer tests to tests/optimizer