Fixed missing SystemPrincipal in compiled code test