Added tests for RandomCreator