Fixed compiled code tests by adding SystemPrincipal