It doesn’t matter how many times you take the tests – this isn’t recorded on your certificate. You have to pass to move on to the next unit, but this is primarily a way for you to review your own progress. A lot of people take them more than once (even after they’ve passed) just as a way of revising.
Your final mark is determined by the 2 submitted assignments.