trying to fix intermittent sinon issues