Update gather.c

Updated to the latest test code.