made an generic arraylist from intarraylist
fixed a nullpointer exception bug
changed test function name to notnull