add possibility to get CC value from get_optimal_parameters. fix test