Added tests for the show_links option and corrected a bug