Made sure size of generated data and expected data matches