replace sinon with mockery