Added function test on $array