global.rtest function

Global and local tests