Tests for interval.random function