modified main collietest to support array input