Unit tests for classes ExitCommand.cs and TopCommand.cs

Add unit test methods for classes ExitCommand.cs and TopCommand.cs