fixed outdated tests and added some xss filter functions