* Minor refactoring for delay detection (send less requests during setup phase)
* Adding (still failing) unittests

This is just a preparation for #41 which is the redos rewrite and unittest
Initial work on #41