tools: resource-monitor: Add hal-api-foo test code