Adding completed test that verifies threads obtain the correct security context