Added support for sinon on tests.