Update complex linking tests by passing by reference