Working on the infinite test case.

Probably need to read some theory on automata, of course, can complete
this test without reading, but reading will make the solution more
solid.