Fixes test for #604 so it works in IE

IE's innerHTML includes expando properties, this makes the test not depend on those values.