Added test console, fixed namespaces

Added a class to supply valid IConsoleAdapter and IErrorAdapter
instances for unit testing.

Also fixed an issue with the namespaces.