Fix (and rename) the ts-set-state test