Adds test coverage for the CI shard helper script, covering its core functionality and edge cases. Fusion-Task-Id: FN-4207