refactored TestRandomContraction
removed sysout lines in RandomContraction