Update test.c

Fixed indendation and organized some assignments.