Yeah, you can pass as many times as you like but say you failed the gb test one day and it was the first test for example, you'd be sent home and thats one life, then say you attempted again at another date, passed all the written and computer tests and failed the mmi for example, that would be your 2nd fail and that would be you out the running, you only get unlimited attempts if you pass them in which case you'd unlikely be doing them again anyway.
Some companies do make you take the tests again even if you've passed and this would overwrite any previous attempts so if you passed the tests the first time and failed on the 2nd you'd have no passes and lose 1 life at the tests.