Added RNG tests for basic child creation and subsequently fixed a bunch of issues.