fix autoprotect tests