added random SSV generation and made tests easier to read