Let tests skip if they can't access the TPM.

This commit changes the tests so they can be run on machines that don't have a
TPM. Of course, the value of the tests is somewhat limited in this case, but at
least now the tests that try to access the TPM won't fail.