Added unit tests for random package.