Increase the length of object array

Ok, test = expand(test, test.length+1) seemed better, to just add one free space for each Single Addition, not double the size each Time one gets added.

And you Should set the first testClass in setup, to avoid Setting it in mousePressed. And then use called+1 in mousePressed to set the new object, and not the one created before. Could cause problems later on.