various improvements including failing of external links with the same slugs, added tests