Fixing the tests to ensure coverage. Also added min and max for the RandomUtils.