Add tests which for checking the resampled data.
It uses some metric function to compare the input and output data for valid averaging.
Closes SDCH-3844