Put RandVar class in it's own file
Made tests for the log, pow and exp methods of factor
Put domain of test factors in attributes of the base class