I'm not a huge fan of using `rand` in tests. Any reason why it's being used here?