added not exixs field test for toArray