create test for getLinks method