adding AlgorithmSetting and tests