If I fail the test, how soon can I take it again? And how many times?

You have to wait at least three days after failing a test to take another one. You can take the test as many times as you like, provided your motorcycle licence is still valid. You must pay the required fee to repeat the test.