To change test attempts, click on the gray arrow button next to the test and click on Edit the Test Options.
In the Test Availability section, check the checkbox next to Multiple Attempts. Select Allow Unlimited Attempts if you want students to have unlimited attempts. If you allow limited attempts, select Number of Attempts and enter a number in the textbox next to Number of Attempts.
Click on the Submit button to finish.