Added tests for:

- Get-Version.
- The last buildCommands.
Large refactoring
Tests for Get-Extensions.