simulation test no longer segfaults because no more casting ptrs in Link.h