selftest: Split out creation of complex (often invalid) links