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

Since we have the jqLite on/off spies, there is no reason to spy on window's add/removeEventListener.