you can made up an non existent target as makelink should be fine... in this way you should not need a cleanup and the test should look simpler..

make sure link_segments is valid ... but it will not be created anyway