Fixes in checking link for is_local, test added, is None 'href' check