removed last mockery dependency, using sinon instead