Remove non-determinism by switching from sinon-chai to regular Sinon asserts and from stubbing whole objects to individual methods