integration tests: rewrites test_link to use test framework unittest.

This is the unittest module from the standard library.