Fix the n != 5 cases in the steepest descent tests.