You must have developer debugging turned on for this test. (Well you should always have that set for testing.)
1. Create a quiz with Require password set to something.
2. Start an attempt. Ensure there are no "Did you remember to call setType()" debug notices.