You can only fail the course if you stop working on the course. You can take the tests as often as you like.