* fix iteration range and add tests * addressing review comments on tests [ROCm/rocprofiler-sdk commit: 4d7b8ece80]
4d7b8ece80