added tests for Random