PLD: unit test for tools