Fixed previous test and improved the excerpt generator