You use Random without setting a seed. Are you expecting the test would pass every time?