Optimization testings