New samples, runTask, runTaskSync with tests