Update mode.cs

there is one more that this is NOT handling correctly which is the last item in the test list where mode = N/2 exactly.