add SubredditLink unit tests & refactor a bit