Added unittest for external tools.