Added test for outputing each task by file in apitest.lua.