Optimization test

Add a new kind of test (these tests are really fast!!)