Test code to examine behavior of hardware counters under PAPI