Remove trailing whitespace from test files for random class.
Adds test case for Cap'n Proto serialization of Random class.