Test done with three sinon types (mock, stub and spy)