When executed by the root user, skip tests that assume no privileges.

Reported-by: Rémi Duraffort <remi.duraffort@st.com>