Fix double linkage for tests