Fixing broken tests and writing new tests to check random array and rand...

...om dice result functions