Fixed protection test bug