Bug 843031 [Facebook] Add a suite of unit tests for link functionality