Make most random tests deterministic
Simplify random tests using predefined "random" values
Merge pull request #62 from conradz/rand-tests

Make all random tests deterministic