test($anchorScroll): fix a test and cleanup dead code