Added unit tests for time-controlled random patterns