Added command-line utility

Command-line test utility code added.