Adding tests for randomise