Add check for {{shard_num}} in data_template

Enhance tests for custom data path