Add more unit tests for test/random.jl in preparation for refactor