the code for tpc test is updated to the new version, in response to the
modificatoins to getAttribute() function.