Correct filtering of private links and include more tests