Test refactoring

Added mock based unit tests for maasservice module, baseopenstack
module and changed all other tests in compliance with latest
refactoring.