perf tests: Move test__PERF_RECORD into separate object