`rand(100)` can be `0`, so this test probably breaks in 1 out of 100 runs, if 0 means "instant" expiry.
Why not just put `1` in there? :)