Fix some bad tests that only worked in Chrome. Improve embedded KMZ replacement to avoid blind global string replace. Add more specs to improve coverage. Use getAttribute instead of iteration.