Add tasks for test and autotest