Test command functionality.