test: add test for pot generation task
task: extract pot task definition code