Refactored "CommandTests.cs"

Did some extensive refactoring to the "CommandTests" file.