Test advanced optimization