Fix heading tests (fix TRAC ticket
https://bugs.dojotoolkit.org/ticket/18162)