Ensure licensure for long pulse tests.

make sure that we always have enough license to finish the test we've asked to start.