refactoring - moving is_link's def above test_file's one