Add tests for proper argument validation in CoreTaskExtensions