Adding test for trace resampling.
Converting resampling test to unittest syntax.