Fix heading tests

Fix TRAC ticket https://bugs.dojotoolkit.org/ticket/18162