Add tests for different strides.

Fix one problem related to strides by copying the strides infos
from the input to the output.