Add a test for the new Optimizer::getAlgorithm() method.