adjust to namespace refactoring

 and upgrade to mockery 0.9 to be compatible with phpunit 4. and adjust some tests to be compatible with the undocumented mockery BC break done in https://github.com/padraic/mockery/issues/144