Update test infrastructure
Run tests during build
Fix syntax error with Python 2.4
Import simplejson instead of json if not available

json module was not included in Python 2.4
CA-114300: make tboot changes backward compatible