Added tests for ArrayList<?>