added test for ArrayAccess, count, foreach