Fixed bug in apitest addon that caused last task to be assigned the wrong table.
Simplified apitest code.
Fixed indentation in processDir function.