improvement of test: use list to store all bad links