various functions in the testing stage