fix sinon things in tests