Integration cli tests on Links in inspect

Here tests for #6683
You might want to change this to an explicit `kill` followed by a `rm` to avoid the delay.