That totally depends up the Instructor whether they ask their students for tests or assignment for their programs. So, yeah, yo can expect to have some tests, just for your own benefits. And, yeah, you can fail the test, retake and pass it as many times you want.