Run basic take() test with and without the sum to allow testing preallocated  output.