Some (few) tests for the optimizer.