initial tests for RandVar class