added randomized word testing