Fix scaling_func_test