testing array to object