Added tool test

Added tool test. Merged from tool/Test