Test for failing IE behavior
Fix global leaks in tests