mods to tests to allow loop to work properly and a slew of new tests pulled over from python faqbot - these are intended to be picked off one by one with new functionality