tests: perfmon - Added a check if test is running with root privileges