Chapter11: modified functionals tests to pass