[PATCH v2 10/14] test: vboot: Tidy up the code a little