(Added some test cases regarding array treatment)