Add test labels automatically in CommonCPPCTest

Set the test labels on the generated tests according to the value of the
variable TEST_LABEL and optionally an additional ${NAME}_TEST_LABEL
variable. If both variables are defined, both labels are added.