Add test case for link restore bug.  This could probably be pared down.