Validate ESN before starting ATE test

This change set checks the length of the ESN to make sure it's valid
before starting the ATE test.