Specs extended to work with sinon stubs and mocks