Unit tests for WindowsCommand.