test: add test for pool side hasTaskFunction()