updated test of protected mode