fixes some tests and extends angular.element with additional scrollOffset method