Added RandomTest
Added RandomLoopTest