Removed .attr(removeClass) and .attr(each) tests as they don't really make sense.