more meaningful tests for DedupRangeStep + fixes in implementation