test various array methods and closures