Fix an error in the tools dir for running unit tests.