add unit test for minimizing sum_squares(constant)