TAP syntax error not_ok -> not ok
Implement loops
Improve log handling of loops