Enhancing tests to work in old browsers