Added:   Tests for method toArray()