Added link fragment construction, and tests to ensure that it works properly.