Typo fixes

missed an i in import for the test. Also, due to poor random number
generation, signal cascade running infinitely. Temp fix: counter kicks
us out of while loop.