refactor linker tests