Added randomized testing with ./random_test.sh script