When is it lawfully required to perform a vehicle license test?