refactors tests to use Mockery