Add tests for new array operation diff helper.