tests: resource-monitor-tests: Fix test fail by changing the return value